Python script for Andrzej