Introduction to Gravitational Lensing : With Python Examples