Use of the exec statement could be dangerous, and should be avoided. Moreover, the exec statement was removed in Python 3.0. Instead, the built-in exec() function can be used.
exec
exec()
exec 'print 1' # Noncompliant
exec('print 1')