obj.copy() isn't supported in Python3.