add python version check
fix crash on timeout
enable preemptable socket calls