Finished refactoring sockets.js
Removed pyc files from repo