updated rs.py example to demonstrate custom next-hop assignment