from datetime import datetime
import pytz


def from_timestamp(timestamp):
    """
    Transform a UNIX UTC timestamp to a Python datetime object.
    """
    if timestamp is None:
        return None

    return datetime.fromtimestamp(timestamp, tz=pytz.UTC)