Python stuff from receiving JPEG via Sockets