Update invaders.py

Moving imports to be done after window context creation, since there is no shadow window.