updated websockify to be compatible with python3

file() and has_key() are long gone in new python. still, the new syntax works fine in python2.