Getting a ‘must be string or buffer, not dict’ which is hopefully because the timestamp was not making a string