update python test template to avoid name clashes

For example, SRM 145 DIV-II level 2, the method signature has a parameter named `time`, which clashes with the imports in the test code and essentially renders the test code useless.

Haven't taken a look at the code base. Not sure if this is the best way to do it.

Also fixed a compile error in the tests alone the way.