May-14-2018, 08:15 PM
It sounds like you are running the script from an IDE (Integrated Development Environment). Try using the command line.
Go to the folder (directory) that contains your source file.
Go to the folder (directory) that contains your source file.
python yourfilename.py
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00