Tweak impl of add_process and add_channel

These two functions were using an O(n) based approach to adding new processes and channels. This instead uses `len()`, which is O(1), to achieve the same thing. It's not a biggie, but it does make things ever-so-slightly quicker and ever-so-slightly more Pythony.