Add MetaData to cihai env object, add some code from pypa/warehouse for AttributeDicts