Issue #783: make theano importable under py3k

This PR incorporates #1224 (Issue #783: python3 compatible - remove relative imports) in one commit.  The other commit contains changes necessary to make "import theano" work ubder py3k.