Building a leftist party to contest future elections will require exorcising existing organisations of their Stalinism — or creating something from a much smaller base