Add builtins check for ResourceWarning.

Another python2 vs python3 item meets the dust.  Seems that __builtin__
changed names from 2 to 3 and we need to use that in conjunction with
the check for ResourceWarning to properly support both languages.

Also added in this commit is a more robust treatment of preparation in
the travis configuration.