Fix truncation of fps_num and fps_den in python