Python implementation of NPFS