Check If Open File Is Empty In Python A Namespace