Update amprupdate.py

Make the distance parameter configurable, but keeping default value of 30.