AM: rm trailing whitespace
AM: i is not used here, pyflakes complains
AM: make pyflakes happy
AM: set res to something, make pyflake happy
AM: use C1 to print a warning
AM: FIX initializing res to None outside loop
AM: ignore *.pyc files
AM: handle the case of decreasing abscissas