A python-based hydrodynamics code for self-teaching of common methods used in astrophysics