api testing using python requests