Update implementation to have api like threading.Lock
Remove old stuff.
Add packaging.