With mp 1.24 , in advanced usage exemple: <with open('test.ulp', 'r') as f:> rise a unicode exception It should be changed to: <with open('test.ulp', 'rb') as f:>