changing syntax to PEP8