Elegant astronomy for Python