Fix a lot of reference counting bugs introduced by stupid copy/pasting
diff --git a/OpenSSL/rand/rand.c b/OpenSSL/rand/rand.c
index a2ffa35..8307ac6 100644
--- a/OpenSSL/rand/rand.c
+++ b/OpenSSL/rand/rand.c
@@ -290,7 +290,7 @@
 
     /* PyModule_AddObject steals a reference.
      */
-    Py_INCREF((PyObject *)&rand_Error);
+    Py_INCREF(rand_Error);
     if (PyModule_AddObject(module, "Error", rand_Error) != 0) {
         goto error;
     }