This change mirrors the following pull request from the original PyAPNs repo: https://github.com/djacobs/PyAPNs/pull/174