Update astro.py

Removed initUnits function and added it inline