PEP8 conformed code generation by mesgen.py

Signed-off-by: Srijan Mishra <srijan23mishra@gmail.com>