Port of SDK with some simplifications. At least passes syntax checks.
Running pep8 tests before nosetests. Also fixed some pep8.
Import fixes; requests now optional in common.
style refactor
SDK: test and fixes
CLN: Pep8 fixes