Turns out uwsgi does its own thing with app variable to run the webapp and doesn't run the script as __main__ so
assets.register(YAMLLoader(os.path.join(DIR,"assets.yml")).load_bundles())
never got called. I moved it out of the
if __name__ == "__main__":
block. And it worked.