Scalar Field Cosmology from a Modified Poisson Algebra