Sample Python scripts to aceess REST APIs with session variables