add new functions for typelist.py and update trowel.py