Edge Detection Process Filtering Python