Use python json.loads to parse tenant id.

Previous method involving awk and cut was faulty and
wound up uploading images to glance with a timestamp for
the tenant ID.

Change-Id: I4f2fc31efb83e620e94b24f88a33771989488b89