added "double_to_float" function which converts a Python double to a Java java.lang.Float object