Python implementation of narf