PYCL adaptaion