python filetest template
template string and case_num fix