One-step simulation implemented in python