Synchronise python bindings to current build

Hi,
I have synchronized the python bindings to bring them inline with current head of master.
Regards
fcr