Started refactoring NetworkHandler module to use Python native libraries