made python3 compatible

added .decode('utf-8') to convert bytes to strings
in self.wfile.write() added bytes() to encode string to bytes for
python3 socket