Fixed compatibility issue with dipy 0.7.
Fixed issue of 'length' import.
Merge pull request #2 from Paolopost/dipy07

Fixed compatibility issue with dipy 0.7.