BSP correnction ipython notebook