Python Test If File Is Read Only