fix loading pickles with Python3