Ok, it seems that I found my solution. And it's a classic rookie mistake. The cube I create in Blender is smaller than the one in my own script :D. After adjusting it... it works.