Samuel Complex Function In Python Practice