Pycrypto: Incrementing CTR Mode
===

Still can't quite get this to work. My question is about how to make the decryption line work. Here is what I have written:

    class IVCounter(object):
        @staticmethod
        def incrIV(self):
            temp = hex(int(self, 16)+1)[2:34]
            return array.array('B', temp.decode("hex")).tostring()
    
    
    def decryptCTR(key, ciphertext):
    
        iv = ciphertext[:32] #extracts the first 32 characters of the ciphertext
       
        #convert the key into a 16 byte string
        key = array.array('B', key.decode("hex")).tostring()
        
        print AES.new(key, AES.MODE_CTR, counter=IVCounter.incrIV(iv)).decrypt(ciphertext)
        return

My error message is: 

> ValueError: 'counter' parameter must be a callable object

I just can't figure out how pycrypto wants me to organize that third argument to new.

Can anyone help? Thanks!