use six to import copyreg