Scientific-grade astronomy routines for Python