Some bugfix

* fixed vertificate generation
* added Python version check in makefile