Python Blueprint don't allow me to package project

Hi!
After I inserted a blueprint made from python code, I have some strange issues. First of all, every time I reopen my project I have to refresh this blueprint, otherwise it looks like this:

After refreshing the nodes everything is ok, I can run the application, the blueprint block does what it has to do, except I can not package the game because of this block. The errors in output log look like this:

The original log file I attached here[link text][3]

Here is the code with witch i created the blueprint block:

Please help me with this because I really need this block and I can do this functionality just with Python.
Thank you!