Updated python program to support changing power amplification and looping message