moved to using requests library and cleaned up code a lot
started working on testing