add cast for start to end value type

Signed-off-by: xiehuc <xiehuc@gmail.com>
add assert for drawline.py

Signed-off-by: xiehuc <xiehuc@gmail.com>
Merge remote-tracking branch 'root3/master'