Fix python script to not always report true