def bytes_pls(some_val):
    """Convenience function that returns bytes when given str or bytes

    :param str or bytes some_val: thing desired as bytes

    :rtype: bytes
    """
    if isinstance(some_val, bytes):
        return some_val
    return some_val.encode()