log_dir = os.path.splitext('/home/pi/ADMIN/.log')[0]
log_file = (str(os.path.splitext(log_dir + '/serialpy')[0])+'.log')
