updating IPy code to use python3 and removing google sets as the api has been deprecated