removed explicit dependencies to matplotlib and numpy