You can use
str(variablename)
This is called conversion in Python. You can use this to convert your variable to type string. Then again it won't work properly in versions <3.0 as if your objects ascii code is more than the ascii of the character then you will get an error, In that case you should use
unicode(variablename)
In version >=3.0 it is taken automatically