Python Check If File Is Open Command