Implemented optional arguments with optparse