Taking the joke a bit too seriously, but that is a statement of moralistic therapeutic deism, not Christianity.
Corrected code.
from behaviour import repentance
from afterlife import Heaven, Hell, Limbo
if person.is_baptised:
if (person.state == repentance):
return Heaven
else:
return Hell # FIXME define Hell
else:
# TODO I think we need something with Limbo here
return None
Well, if that code was written at any point after the 12th century, you need to add Purgatory. Also, for Limbo, you need to never have heard of the Catholic Church, so you probably need some kind of information tainting.
Corrected code.