Initial commit of q2.py, implementation of er_undirected and er_directed functions