Not just whitespace - python whitespace
Round one of code cleanup - remove dup code and fix some bugs
remove pdb
Keep Mobapp types straight
Var rename bugfix