Remove some lines from python template