Improved error handling
Old python binding deleted