Fix DeprecationWarning on python 3.3