All the existing codes should be migrated to the new version, until then the legacy version can be used as below:
# existing code structure
import nlp_utils as nlpu
print(nlpu.text_process("some random string that needs cleaning"))
# replace the same with new structure like
pip install nlpurify # install the new code version
import nlpurify.legacy as nlpu
print(nlpu.text_process("some random string that needs cleaning"))
The namespace import with the nlpu alias will be enough to migrate to the new code style unless the codes are gradually migrated to the new version/styling.