python module for galactic magnetic lenses