I've saved a simple numpy array by doing:
numpy.save(filepath, anarray)
I'm now trying to retrieve it using pickle (I don't want to switch to numpy.load because the code has to be flexible), but I get:
atuple = pickle.load(open(filepath, 'rb'))
_pickle.UnpicklingError: STACK_GLOBAL requires str