title: How to blur a image in Python using Pillow
body: <p>I am trying to take an image and blur it in Python using Pillow.</p>
  
  <p>The only things that are imported are random and Image.</p>
  
  <p>The only functions of Image I can use are open, size, load, new, close, show and save.</p>
  
  <p>I know that I have to take the average RGB values of the pixels surrounding every pixel and then set that value to be the RGB value of the center pixel. </p>
  
  <p>The problem is that I don't know how to get these values and look at specific edge cases where there are fewer adjacent pixels.</p>
  
  <p>I am not allowed to import anything and can only use lists, loops, if statements, dictionaries, and tuples.</p>