add python script to make code easier to handle
adapt Makefile and PKGBUILD to new python script