A C extention for python to test performance