Internal plugins code cleanup according to PEP8 guidelines