from datetime import datetime


def _parse_timestamp(ts):
    """
    Convert the provided timestamp format to a Python datetime+TZ
    """
    # remove the unhelpful colon in the TZ specification
    ts = ts[0:-3]+ts[-2:]
    return datetime.strptime(ts, '%Y-%m-%dT%H:%M:%S %z')