Improved gen_phone.py to take command line arguments