fix pep8 issues and commit the transaction when cancelling the job list
fix pep8 issues and commit the transaction when cancelling the job list

Change-Id: I7394d1ec67e35c4eef2fd449042cd6aae6216f41
Signed-off-by: Tyler Baker <b3cc311ecf91e7c5c184946246e38d36003af74d@linaro.org>

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