SConstruct: Fix python modules for linux

This is a recommit of 2cf9c7aee110764a83a36b349a0b532929c5039b.
Someone apparently reverted these changes a while ago.