A python implementation of ESNA-NW