pyfile, file substitute, wrapper for python-magic