Python 3 example get-object.py: fix saving photos

These test scripts didn't work when I created the Python 3 SWIG bindings
(URL wasn't reachable) so I didn't notice the problematic call to
GetDataAsString. Use the new GetData to retrieve pixel data, and write
the byte string to a file that's opened in binary mode.