import sys this = sys.modules[__name__] def default(index, tick): return (((index + tick) * 5) % 255, (tick * 42) % 255, (tick * 50) % 255) def pat(index, tick, previous_values): return default(index, tick) def parse(str): this.encoded = str print(this.encoded)