base py template stuff