How can I check if a Python object is a string (either regular or Unicode)?
if type(varA) == str or type(varB) == str: print 'string involved'
from EDX - online course MITx: 6.00.1x Introduction to Computer Science and Programming Using Python