Generate Mac File Previews in Python