SCI test python code