Python script improved

Now it rocks