strip newlines that Python adds to base64 data for standard output