Python3.3 compat

Currently, httprety fails with python3.3 because of basestring. These fixes should prevent that. Some tests continue to fail and additional fixes are required