Clean up and comment distribute_edges
update uri.py, add doctest to edges.py
refactor json_to_assoc, fix the file= argument to the print function