Simple raytrace in a sphere with refraction written in python3.