python: compile shared object files

This makes python create `libpython.2.7.so`. This file is important for, among other things, compiling YouCompleteMe with CMake.