Rulebook: bringing co-routines to reinforcement learning environments