Is there a function or method I could call in Python 
That would tell me if the data is RSS or HTML?
You could always analyze it yourself to search for an xml tag (for RSS) or html tag (for HTML).
Identifying if a data is RSS or HTML on python