>If it's wrapped up in a library and it's distributed by a package manager then it doesn't count towards the total SLOC of your project.
Think about what you are saying. With that logic I can write a library in C++ that evaluates all images in the current working directory for least edge length and returns the name or index of the winning file. My Python program, then, might look something like this:
import magic
print magic.evaluate()
And then I claim that I have written a program that solves a swirly CAPCHA in two lines of Python.C'mon.
I you want to count true Python lines, download the language from python.org and write a solver without the use of any add-on libraries. Then we can talk about Python lines.