[all] added p2&p3 compat module; replace basestrings with  string_type; fixed absolute_imports