Fix python majorminor