Setup a proper python project layout.
Fix a crash in config.py

Make sure that data is not None before trying to access items on it.