API call methods implemented

moved API call methods to exterior source to ease function calls.
Updated jinja version to 2.6 as .8 was not supported as a hardcoded
value.