codegenerators: add tests for additional code inserting
FuncSpec: code to insert passed to codegenerators
test_funcspec: fix formatting
codegenerators: extract methods for arbitrary user code insertion
codegenerators:python: generate function from template
codegenerators:python: drop meaningless strings with single whitespace
codegenerators: separate tests to speed up module testing