env.Append(BUILDERS={'Replace': replace_builder})
b = env.Replace('somefile', ['somefile.tmpl'], REPLST=[('A', 'b')])
SCons: How to call a self defined python function in scons script and make right dependency