Allow batched values to assign data for more than one timestamp

string is undefined and will result in a NameError here. You should use basestring instead. All str and unicode objects are also instances of basestring, so it's the safest comparison.