Started rewriting the back-end in Python