Section 4 of FLP (linked below) describes an algorithm that can solve consensus in an asynchronous system with
sim.py
attempts to implement this algorithm.
$ python -m venv venv
$ source venv/bin/activate
$ (venv) pip install -r requirements.txt
$ (venv) ./sim.py