Update python code to be pep8 compliant

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>