Update tf-23-monadic.py. 

We can eliminate the extra parameter in the __init__. Let the naming in get_input method more clear.