Modify on_data method of StreamListener to process warning messages

Extend on_data method by including a conditional to process warning messages and add the definition of the method that actually manages those warning messages.-

In addition, a small typo was fixed in the comment of the on_limit method.-