PYTHON compute absolute particle position