Set reference state of fluid from Python and test

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>