[PATCH 2/3] [python] fixes for epel-6+ and fedora-22+