Way to APDU- Data

Hi, I want to implement a simple “Run GSM Algorithm” APDU which returns SRES and Kc to an random number.
I’ve found that: https://bitbucket.org/geekman/pysim/src/12cd0cc278fa?at=master
If you call

/pySim-run-gsm.py -n 3

you get something like:

IMSI , RAND , SRES , Kc

525xxxx163xxxx0,db8844…38a327,1fxxxxe8,c52xxxxxxxxx1c44
525xxxx163xxxx0,e3d0eb…752fac,41xxxxd7,edfxxxxxxxxx72ba
525xxxx163xxxx0,914c4a…e82ba5,c0xxxx3a,284xxxxxxxxx9970

Is there a Way to access the (in EVERY phone implemented) library that produced the data. Or some workaroud to manually generate the apdu