Python script to monitor oracle