'In a not so elegant fashion, identifies and truncate
epoch timestamps expressed in milliseconds to seconds'

def __truncate_to_epoch_in_seconds(self, timestamp):

    limit = 32503680000
    if (timestamp > limit):
        return (timestamp / 1000)
    else:
        return timestamp
