python program to use GDAL and OGR to find the uploaded file format