As I've said, it's not my python skills
The reason why 'bad username' errors are being given is because, to identify users, their IPs are hexed into their username. Some username hexes are number heavy, and trigger NetGamer's anti-bot detection, which kills them. I will work at either modifying it so that the numbers are removed from the ident or working with NetGamers to stop these clients being barred from IRC.