Update securecookie.py

was having a problem with the hmac module in python dealing with unicode strings in this module, so i checked the instance and dealt with it if it happened like this.