Use optparse.
Fix broken indentation. The script really needs to use spaces throughout.
Use spaces rather than tabs, as per PEP 8.
Use string formatting rather than concatenation.
Merge pull request #1 from brunns/master

Used optparse for a better command line experience.