Moving to Python27. Fixing some syntax issues/unused imports.