I also had a problem with a file called io.py. This suggests that there are other standard module names that should be avoided when specifying your own .py files. As soon as I changed the file (and got rid of the cached io.pyc file, which was generated at an earlier start), the code behaved more normally.
source
share