Bash Script If File Not Empty In Python