test socket select with python