Shouldn't this be:

```python
P_link2 = P1.locatenew('P_link1', l[1]/2 * B.y)
```