updated python

allows user to input ip values