Fix broken global variables resolve in PyCharm: https://youtrack.jetbrains.com/issue/PY-2101