fixed hanging bug by removing extra call to socket.socket, thank you - Wojciech Walczak  http://facemining.tumblr.com/about