fix python operator syntax