Fixing copy() methods to work with gevent library