Check If File Is Directory Python