Improve python dict check
Improve python dict check

Signed-off-by: Jose A. Lopes <0fb9c4f8511df4ec2ae28af879e9d462f6218a2c@google.com>
Reviewed-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>

ganeti/ganeti,yiannist/ganeti,ganeti-github-testing/ganeti-test-1,mbakke/ganeti,yiannist/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,grnet/snf-ganeti,apyrgio/ganeti,leshchevds/ganeti,andir/ganeti,ganeti/ganeti,dimara/ganeti,bitemyapp/ganeti,onponomarev/ganeti,ganeti/ganeti,andir/ganeti,apyrgio/ganeti,dimara/ganeti,mbakke/ganeti,grnet/snf-ganeti,onponomarev/ganeti,leshchevds/ganeti,andir/ganeti,bitemyapp/ganeti,leshchevds/ganeti,yiannist/ganeti