Create a dialog for the python script export

Refs #10492