Windows 10 Code Keeps Exiting Python