Python Check If File Is Open