using scipy eigh with added parameters