Bash Get File Line Count In Python