Update PXelec.py

Added new major release check.