[REF] Move the AttrDict, OrderedDict and other common stuff in common.py