Update wepic.py

Moved redis connection creation to a global variable