Reformated the code with autopep8