Convert the sript to use argparse

See the README festures section for deatils on why was done