python function for integer