Python Rest Testing