Solved by tom in post #3 
              
              
                There is add_scalar (singular, so no s at the end) that would seem to work roughly like you want (except for the .eval() in there). 
You are calling add_scalars (plural) which takes name/value pairs in form of a dict if you want to add several. 
Best regards 
Thomas