Refactor main() function in nmt.py for further extension; Remove usage of global FLAGS
Refactor main() function in nmt.py for further extension;
Remove usage of global FLAGS

PiperOrigin-RevId: 163227598

tensorflow/nmt,tensorflow/nmt