improved testing python app