[python] added python 3.4 support

1. Added build case for travis-ci
2. Descriptors are close on exec by default
3. Avoid too deep recursion in file and socket tests