Yes, because PHP allows the passing of function references. Accordingly, PHP has iterative abilities and factory/generator classes can be implemented.
Yes, Python offers several features that allow for functional programming. Namely, iterators and generators.