PyAMS elastic