some new functions in wrapper.py and little fix to network.py
reorganize class in wrapper.py
added functions to UserSesion class