Review code and organize/change to match Python coding guidelines
I'm guilty of not following these due to old habits with C, Perl, etc.
Not all of those may apply (non python.org links), but look to be useful.
Beginning of code cleanup: One import per line, docstring below shebang, authorship info moved.
Wrapped code in a main() block and moved OptionParser import to where other modules are imported.
Added missing docstring to WriteFile function and split part of the print statement onto the next line. Still many more throughout code that exceed 80 chars.