fixing python binding