Cpp Array Of Functions Python Programming