Compatibility with PyQt4 v2.6

Python 2.6 needs PyQt4 v2.6 to work. The `TemporaryNetworkFailureError` and `ContentReSendError` attributes were added in v2.7.