517468 - Adding option [-d|--dry-run]
517468 - Correct the unindents to fix the logic.
517468 - make format backwards compatible for python 2.4