Command-line option parsing
Python 3 support