Set up python and templates