now tries subprocess.popen if subprocess.check_output fails. added map drawing feature in index.py