Python Format String Length Function Python Code