def is_ipv4(address):
    """It checks if address is valid IP v4

    """
    import socket
    try:
        socket.inet_aton(address)
        return True
    except socket.error:
        return False
