modified for style guidelines

corrected the comments and made first attempt to fit style guidelines
for python programming