Hierarchical Representation Learning implemented by Python