def proto_refactor_files(dest_dir, namespace, namespace_path):
for dn, dns, fns in os.walk(dest_dir):<EOL><INDENT>for fn in fns:<EOL><INDENT>fn = os.path.join(dn, fn)<EOL>if fnmatch.fnmatch(fn, '<STR_LIT>'):<EOL><INDENT>data = proto_refactor(fn, namespace, namespace_path)<EOL>with open(fn, '<STR_LIT:w>') as f:<EOL><INDENT>f.write(data)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
This method runs the refactoring on all the Protobuf files in the
    Dropsonde repo.

    Args:
        dest_dir (str): directory where the Protobuf files lives.
        namespace (str): the desired package name (i.e. "dropsonde.py2")
        namespace_path (str): the desired path corresponding to the package
                              name (i.e. "dropsonde/py2")