Only use file if we don't have an extension to determine pythonic-ness.

A fix for #38