add a python test; fix settings.py