def addSquareTwoToPixelDictionary(pixelDictionary, point, value, width):
 point /= width
 x = int(round(point.real))
 y = int(round(point.imag))
 for xStep in xrange((x - 2), (x + 3)):
  for yStep in xrange((y - 2), (y + 3)):
   pixelDictionary[getStepKey(xStep, yStep)] = value

def addSquareTwoToPixelDictionary ( pixelDictionary , point , value , width ) : point /= width x = int ( round ( point . real ) ) y = int ( round ( point . imag ) ) for xStep in xrange ( ( x - 2 ) , ( x + 3 ) ) : for yStep in xrange ( ( y - 2 ) , ( y + 3 ) ) : pixelDictionary [ getStepKey ( xStep , yStep ) ] = value
add square with two pixels around the center to pixel dictionary .