A python implementation of NetDIMES