some mess awk/python scripts