Python script that tries to find the memory and core clock sweet spot