Python script learning