Clean up PMC code

Fix pep8 and other style issues.

Change-Id: I96379ace570daadd2a58940c1213ac7f547732c6
Signed-off-by: Ryu Ishimoto <ryu@midokura.com>