python extension LSs