Streamlining RandomEvent.py