python module for text input transformation