Python IP Address Management