allow both dictionaries and list as arguments to time-dependent hamiltonians