Input parameters parsing was rewritten using argsparse module.