Support both older and newer pika.
Support both older and newer pika.

python-beaver/python-beaver,josegonzalez/python-beaver,josegonzalez/python-beaver,timstoop/python-beaver,rajmarndi/python-beaver,python-beaver/python-beaver,rajmarndi/python-beaver,timstoop/python-beaver