Port of python-raft to D