application octet stream to pdf python