main/py-rtslib: upgrade to 2.1_p50

ref #3399

(cherry picked from commit 72a716fba2ea67a59b323af580cbcdeff1902231)
main/targetcli: upgrade to 2.1_p37

and fix build

fixes #3399