Added timeout to python binding