Fix PendingDeprecationWarning raised by Python 3.4.1