Fix some issues found by Pylint

1. PIPE is unused
2. lambda is unnecessary at exporting the ipas