rewrote the code in python, committing it