You can set integer variables with pylpsolve.LP.setInteger(self, indices). There is an analogous "setBinary" for binary-valued variables. Here's an example (note that variables are indexed 0-up):
from pylpsolve import LP
lp = LP()
# Specify constraints
lp.addConstraint([[1,1,0], [0,1,2]], "<=", [3.1, 4.1])
# Force the first variable to be integer-valued
lp.setInteger(0)
# Force the second variable to be binary-valued
lp.setBinary(1)
# set objective
lp.setObjective([1,1,1], mode="maximize")
# Run
lp.solve()
# print out the solution:
print lp.getSolution()