add support for OTF files and use argparse instead of optparse

made some changes for PEP8
Merge pull request #1 from sivapvarma/arg-parse

add support for OTF files and use argparse instead of optparse,