store config in config.py; tiny other changes