What's the str() function there for?
str()
Please see Wiki - how to post code on this forum. Post code - not pictures of code.