LAVA-1276 - Search functionality broken on staging job list page
LAVA-1276 - Search functionality broken on staging job list page

Support changes to exec() in python3. It's updated from being a
statement to being a function so variables in local scope are not
affected by it anymore.
Use local symbol dict - locals() - to fix this.

Change-Id: I04657b8ac99e36123ed590d495d994b66a8c7440

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