Python class to encapsulate different representations of large datasets