Fix conflict with other thread attributes.
Fix complex casting test on py3.4