How to check python script running image