renamed filter to content_filter when the file gets imported to help with pylint