A minimal implementation of Snake in Python