added detection of invalid proxy to SocksPy
added file for testing bad proxies
removed unneeded vars