It really depends on which "laws" you are referring to.
When laws are changed, whether or not they will be retroactive depends on whether they are substantive or procedural. Therefore, if you were charged in 2009 or 2010 with a crime you allegedly committed in 2009, all the punishment-related laws from 2009 should apply. However, the courts could determine that some of the 2010 changes were procedural, and try to apply the new 2010 laws. Still, punishments are always considered substantive, so you should not be subject to the new harsher punishments.