Initial commit of q2.py, implentation of undirected_er function