Update and rename line_effect.py to effect.py

extend the function to support more ops