def to_datetime(python_dt):
    """Converts python datetime to the salesforce format.

    Example: 2014-11-20T14:23:44.000+0000
    """
    return python_dt.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + '+0000'
