Bash Script Check If File Is Empty In Python