Check If Open File Is Empty Python Function Call