[py] use PyFloat_FromDouble in meltohz methods