efficient user-based filtering; pep8