also removes boilerplate from python template