use six to import copyreg

This test started failing in python 2.7.3, possibly related to a recent switch to six.
@mdboom Is this the right way to use it?