Imported copyreg from six.moves