Handle Malformed URIs Bug

This try-catch can be factored out of this and other following functions:
```python
def str_to_ipy(addr):
    """Convert an address to an IPy.IP object or None if unsuccessful."""
    try:
        return IPy.IP(addr)
    except ValueError as e:
        print 'Not IP address:', e
    return None
```