Rework of socket/ssl module

Based on #344, this PR includes mainly the rework of socket/ssl module to also support Python 3.3 API.
 * Also fixed fileobject with Python 3 implementation.
 * And some minor changes to run py3k tests.

Note, the Python 3 implementations are not proved correct yet by tests, probably need further changes while fixing tests in the soon future.