Argparse

The `optparse` module is [deprecated](http://docs.python.org/2/library/optparse.html) and should be replaced by `argparse`.
I also took the liberty to add an example on where to get the argument in the Project class.
Finally I reformatted some code to comply with [PEP8](http://www.python.org/dev/peps/pep-0008/)