Code formatted using autopep8