Taking my project written in D and translating it to Python.