Hi alban
Thank you for the response.
I got what you said and it is useful.
I searched about creating C class which can access from python little bit further. I am sharing the below link which would help community to understand this further.

  
      
      O’Reilly | Safari
  
  
    

Python Cookbook 2

Coding the Methods of a Python Class in C Credit: Brent Burley Problem You have a Python class and want to recode it as a C extension for speed while ...  - Selection from Python Cookbook [Book]