Made all necessary changes according to pep8.