You can put your global variables in a dictionary. This may make things harder to debug but at least you know where they all are. You can also put them as static inside functions which are always global.
Develop games in your browser. Powerful, performant & highly capable.