amplitude modulation in python