ensured Python 2.5 compatibility by adjusting Selector dependency