Cast import fromlist to str to remove unicode types

Cast fromlist argument in import function to str to prevent unicode
types from causing it to choke and throwing a TypeError.