Rolling my own python library for graphs