Lensing codes for science