Python Get File Type From Path