How can I 'transform' Class object in python to llvm?
===

I am willing to use llvm to optimize my python code. I read some tutorials but I have not figured out how to, let's say, export class object from the python code to llvm. I learnt how to create a function in llvm-py, but classes are beyond my forces.

Here is an example of class I want to create in llvm code:

    class Char():
    def __init__(self,c):
        self.c=c
    def next(self,line,p):
        try:
            return self.c==line[p]
        except:
            return False
    def next_rep(self,line,p):
        try:
            return self.c==line[p],p
        except:
            return False,p
        
I would be grateful for any help!