Remove usage of global sys.argv in functions