Anonymous datatype in python