separate react.py