Fix hardbans and normal bans for Python 3