[Kwant] Finding hamiltonian of system (error in user defined function 'onsite')