Running python script with nri-flex

Hi,
I’ve been testing nri-flex with some python scripts, and for some reason I’m not getting any values back to NR. The script just returns a single numeric value.
My nri-flex integration:

integrations:
  - name: nri-flex
    interval: 30m
    config:
      name: titanDBscript
      apis:
        - name: titanDBcount
          commands:
            - cmd: python3 /home/user/titandb_count.py

When executing:
SELECT flex.counter.titanDBcountSample FROM flexStatusSample SINCE 10 MINUTES AGO

I don’t get any results.

Any ideas?
Thanks
Br,
Ioannis

my issue looks to be related with this post: