basic BB python port, global optimization options dict