work around inability to detect existing Python globals (e.g. from imports) when cpdef-ing global functions