fixing coding style as per some PEPs