[python] **UNTESTED** refactor and begin adding support for iOS 8