added scan condition to designate the scan operation on pyserver