made code compatitable to PEP8 standards