Add getSymbol method to Java
Add getSymbol method to Python