This fixes compatibility with Python 3.7; but we should have been doing this since b8fe420ef35c63a85a92179b62adf4556f2d1a92. The incompatibility with Python 3.7 was introduced in cb41b2766d See also: http://bugs.python.org/issue29646
cb41b2766d