There are some changes that I have to make to s directory of files ( in python of course ). Is there some simple way of telling whether a file is binary or not (from python of course )?