Reformatted the code with PyCharm.