Adapt py_alf for Submodule Hamiltonians