Fixed bug with details dictionary. Only import cElementTree if not in debug mode.