use _asdict instead of __dict__ for python 2.6.5 compatibility (fix #37)