Move config to a separate file, clean up code, fix python indenting (ugh)