Removed string wrappers around argparse namespace attribs.
import re; use re.subn to clean up open->replace
Use .endswith() instead of import & use fnmatch.
pep8 cleanups (but unwrapped lines for argparse)