Converting scenario context to dict

This changes scenario context that is function to
a simple dict.

Change-Id: Icd2889434179ba08b8237b6c32d9ee6939dbf00a
Merge "Converting scenario context to dict"