modtool: fixed general python block template