It's called from tools.py so needs a cpdef. (in tools._maybe_get_tz)