new syntax
diff --git a/Demo/sgi/video/syncaudio.py b/Demo/sgi/video/syncaudio.py
index 742a433..fd09d28 100755
--- a/Demo/sgi/video/syncaudio.py
+++ b/Demo/sgi/video/syncaudio.py
@@ -70,8 +70,8 @@
     # buffer. Discard all buffered data upto his starttime
     #
     startstop,histime = eval(ctl.recv(100))
-    if (ofile = None and startstop = 0) or \
-			   (ofile <> None and startstop = 1):
+    if (ofile == None and startstop == 0) or \
+			   (ofile <> None and startstop == 1):
 	print 'Sync error: saving=',save,' request=',startstop
 	sys.exit(1)
     filllevel = inp.getfilled()
@@ -89,6 +89,6 @@
     print 'Time: ', time.millitimer()-starttime, ', Bytes: ', totbytes, ', Samples: ', totsamps
     if ofile <> None:
 	ofile.write(data)
-    return (startstop = 2)
+    return (startstop == 2)
 
 main()