How to send file as stream from python to a C library,main()