Topological aspects of generalized Harper operators