Python Get Current Filename Extension