Update method ordering to be more correct

public, alpha, private, alpha

Also fix json encoding in python3