Java Explicit Conversion In Python