python library for data based network modeling