added basepath param
started working on new_from_swagger. Added hostname