Changed dummy data from a HTTP request class to a python function