I would suggest to go through the cython its a complete topic and can not be explained in a single response (may be you can write an article so that it can help the bigger set of people), here is the documentation of cython
http://docs.cython.org/src/userguide/external_C_code.html#c-api-declarations
I need python code snippet for LTE/UMTS for automation testing.Example of scenario looking for LTE attach ,detach, MO/MT call . I am looking for UE side scripts.