Imported into PyCharm. Restructured for Python 3.