Python Scalar Product Physics