move basepath code from topographica script to topo/__init__.py