Simple implementation in Python
Cleanup and put lp in simple.py