# #Error lookup stuff def error(type): print "\x1b[31m", error_lookup[type], "\x1b[39m" error_lookup = {'bad_command': 'Cannot parse command!\n', 'block': 'Illegal direction!\n', 'file': 'File does not exist!'}