Fixing python code to comply them with PEP8 rules (part 4)