Most Complex Python Programming