python version ported to argparser