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)
Merge pull request #2 from burkean/master

use regex; clean args; minor pep8 stuff