python3: sync build rules with python's

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Merge pull request #572 from commodo/python3-sync-build

python3: sync build rules with python's