Major refactoring, splitted code up into functions
Made OptionParser/ArgumentParser transition more generic
Added optional parameters, added non-WSGI django config