Unified file type, compatible py3k.