moving third party dependencies to their respective directories; changing code to Jinja2 style