Astrophysics utilities for python