Practical Python for Astronomers