importing now works in 3
now set credentials via env var
fix python 3 regex errors