## Making python 2 and 3 compatible:
from future import print_function
print("sint")
raise ValueError("dodgy value")
####python 2 currently rounds down, i.e. 2/3==0 not 0.66, while python 3 does true division ####rounding down in both python 2 and 3 is 2//3, thus with two slashes ####to run true division in python 2 and 3 from future import division # (at top of module)
so far I have circumvented this problem by using a dot after integer (e.g. 2. instead of 2). So maybe try and fix this
####Suppose the package is: mypackage/ init.py submodule1.py submodule2.py ####and the code below is in submodule1.py:
import submodule2
from . import submodule2