small fixes to python and MBE