def bytes_from_hex(value):
    """There are many ways to convert hex to binary in python.
    This function is here to attempt to standardize on a single method.
    Additionally, it will return None of None is passed to it
    instead of throwing an expected string exception
    """
    if not value:
        return None
    return bytes.fromhex(value)