Refactor filtering code
Update gitignore to ignore PyCharm files
Rename script to filter.py