Updating exec usage

It was not working on python 2.7