Move python 2->3 checks into their own module

Move H23x checks into their own module.

Change-Id: If54538f68c6e7811ce259009550f405ad0906f1b