is this copy/pasted from free_streets.py? Can you factor out any of the commonalities?