Update sdr_calculations to work with latest nupic.core.

@subutai please review