Fix errors related to urllib
Fix errors related to urllib

jwi078/pyunifi,oe1rfc/unifi-api,finish06/unifi-api,arska/unifi-api,unifispot/unifi-api,finish06/pyunifi,kinneerc/unifi-api,calmh/unifi-api,JulienPalard/unifi-api