Added a mechanism for replacing invalid python identifiers as names and devices of the channels.