fixes for PyInstaller
undoing stupidity