Move constants out of code. Pick up configuration from another python script

Plust little path cleanups.