Digital modulation functions for Python