implementing the myip functionality in python elsewhere