Fix a bug of wrong type
change to use struct
Merge remote-tracking branch 'origin/thrift' into inotify
change .gitignore and remove *.pyc