fix #ifdef to use PyFrame_GetLineNumber() on Python 3