fixed weird configuration errros in python3.4, added logic for USER_REQUIRE_INVITATION
Merge pull request #55 from neurosnap/req_user_invite

added logic for USER_REQUIRE_INVITATION