An example of an SDL2 app as a python module.
Only tested no Ubuntu 14.04
# sudo apt-get install libsdl2-dev libsdl2-image-dev libboost-all-dev cmake
# git clone https://github.com/chris-statzer/sdl2-boosted-python.git
# cd sdl2-boosted-python
# mkdir build
# cd build
# cmake ..
# make
# python test_sdlapp.py