Two comments here. First, only functions specific to libcloud belong in this file. Second, this duplicates functionality which already existts in the is_public_ip() function in utils/__init__.py.