argparse is just for parsing command line parameters, so you can change some parameters in the model without changing the source code.
The idea behind generating time series is to prove that a neural network can automatically learn important features in the training data, and generate new data that resembles the given examples. For an introduction to the task, I would suggest reading Andrej Karpathy blog post 25.