improved pyiwrapper arg parsing

With the help of argparse