Use nippy for serialization and Deserialization of socket data

Signed-off-by: Rhishikesh Joshi <rhishikeshj@gmail.com>