How to get the size of a string in python?