Make SparseEntryStorage work on Python 3