def METHOD_NAME(self):
    """ Try compiling the script to bytecode
    """
    try:
        self.error = ""
        return compile(self.draw_script, "<script>", "exec")
    except SyntaxError as exc:
        self.error = str(exc)
        return None