modify str python