added filter_utils.py
separated functions into corresponding files