Sql Server String Length Function Python Code