Samuel Complex Function In Python Definition