Hub control in Python