I have a program in python 2.7 which accepts command line parameters using argparse, however if I try to enter a string containing an ampersand I lose the chara
argparse
This is a problem with your shell. Put the argument in quotes.
You can escape the ampersand with a backslash:
$ python args.py -a http://www.website.com?optionone=one\&numbertwo=two