now it is laoded by python3, still must be refactored a lot