from datetime import datetime


def from_iso_timestamp(timestamp):
    # type: (str) -> datetime
    """Return a datetime from an RFC3339 encoded timestamp. Assumes UTC."""
    return datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%SZ")