Making this portable and config friendly

We've tried to make this pip installable and added more variables to settings.