I have to agree with main butter.
Because, after the law were to be passed, your still criminally breaking it by continuing to own the animal. If, perhaps, you had a python in 2008, but not after the law was enacted, then you cant be punished because you had it when it was legal.