Fix Python2 syntax when creating secret key.
Fix Python2 syntax when creating secret key.

Change-Id: I5c83a5b09b63c353b755d41f80d7fc1ccf11a629

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server