Fixed a minor bug in reducerStg3.py

Signed-off-by: Archit Shukla <archishukla2@gmail.com>