How to program stm8s003f3p6 using UART?
I got the answer to my question . It may help others. Please see this post for answer.
Post in above link explains, how to write bootloader for stm8s003f3p6. Also there is Python program of uploader. Github Link for the code is given at the last of the post