Finite dimensional invariant subspaces for algebras of linear operators and amenable banach algebras