cur.execute("SELECT omega,z FROM X WHERE omega=?",(Omega,))
since a string is iterable it tries to bind each letter to a ? (eg it sees cur.execute("SELECT omega,z FROM X WHERE omega=?",('1','0'))
instead of cur.execute("SELECT omega,z FROM X WHERE omega=?",('10',))
if you specify like this it knows the string is one item that binds to the question mark