Perform deepcopy on Py2.7+ only