Fixes 2 known incompatibilities with Python 2.6

https://github.com/Azure/azure-sdk-for-python/issues/173