Fixed bug

Bug fixed that causes the bfgs optimizer to crash when a MPMath type is returned from the _f function in BPLL.py.