problem with unicode in transaction_type in getting orders

trader007
the string returned for transaction_type is u'BUY'

but i cant equate it with str neither unicode('BUY')

what i mean is assuming u'BUY' is returned from kite and assigned to variable a

a is unicode('BUY')
str(a) is 'BUY'

both returns false

any help?
This discussion has been closed.