This is more of a general python question, and whatever libraries you be using (which we can’t see in the screenshot)… as some of them have .x, they aren’t just numbers.
Ideally, post this as a gist such that someone could actually reproduce your issue.
