notebook fixes

- fixed all notebooks
- added some utility functions to mlab/
- added a test to verify pandas API