Initial commit of q2.py, implementation of undirected_er function