Astronomical Interferometry in PYthon (AIPY)