Solutions to exercises in 'A Primer on Scientific Programming with Python' by Hans Petter Langtangen