Update pyvse2.py

added rebalancing