updated based pithy.py library