making template arguments explicit in build_commands
docstring and utf-8 encoding fix