Ran 2to3
PatternMgr formatted for PEP8
Started cleaning Kernel module.
tabs to spaces
Fixed kernel tests