Refactor rhcs_ci.py