added python support for sparse data, added new in memory data layer for sparse data