Install Pillow, the friendly PIL (Python Imaging Library) fork.
pip install -r requirements.txt
Note that Pillow depends other external libraries as well. For more information on installing Pillow, check out their docs here.
To run on the example fixture png files:
python luminosity.py ./fixtures/*.png
"Brightness" is based on relative luminance, as described here.